﻿//-----------------------------------------------------------------------
// <copyright file="Echo.cs">
// Copyright © Theo Chin 2012.
// All rights reserved.
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// This code is made available under the Ms-PL license.
// Please see LICENSE.txt for more details
// </copyright>
// <Author>Theo Chin</Author>
//-----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace EchoGarden
{
    public class PingEventArgs : EventArgs
    {
        /// <summary>
        /// Gets the position from where the ping originated.
        /// </summary>
        public Vector2 Position { get { return sourcePosition; } }

        /// <summary>
        /// Position of the source node when the ping was emitted.
        /// </summary>
        private Vector2 sourcePosition;

        public PingEventArgs(MyNode sourceNode)
            : base()
        {
            sourcePosition = sourceNode.CurrentPosition;
        }
    }
}
